FILTER-VALUE
Creating new filter value
const filter = new FilterValue('name');
const filter2 = new FilterValue('name', 'value');
const filter3 = new FilterValue('name', 'value', 'type');
Updating filter value
filter.Name = 'New Name';
filter.Value = /New value/i;
filter.Type = 'regex';
Removing type
filter.removeType();
Getting values
const name = filter.Name;
const value = filter.Value;
Possible value types
boolean
function
array
regexp
date
string
number
range
*
- Note: range can only contains
string
, number
or date
Static type values
When static type is set, it will try to parse value as this type!
WARNING
Note: Filter value using prototype changes which are dangerous.
Note: When you using regexp please use FilterValue.regexEscape('Some regular expression')